Platform Explorer / Nuxeo Platform 6.0

Component org.nuxeo.ecm.platform.audit.PageProviderservice.contrib

Contributions

XML Source

<?xml version="1.0"?>

<component name="org.nuxeo.ecm.platform.audit.PageProviderservice.contrib">

  <extension target="org.nuxeo.ecm.platform.query.api.PageProviderService"
    point="providers">

    <genericPageProvider name="DOCUMENT_HISTORY_PROVIDER_OLD"
      class="org.nuxeo.ecm.platform.audit.api.AuditPageProvider">
      <whereClause docType="BasicAuditSearch">
        <fixedPart>
          log.docUUID = ?
        </fixedPart>
        <predicate parameter="log.eventDate" operator="BETWEEN">
          <field schema="basicauditsearch" name="startDate" />
          <field schema="basicauditsearch" name="endDate" />
        </predicate>
        <predicate parameter="log.category" operator="IN">
          <field schema="basicauditsearch" name="eventCategories" />
        </predicate>
        <predicate parameter="log.eventId" operator="=">
          <field schema="basicauditsearch" name="eventId" />
        </predicate>
      </whereClause>
      <sort column="log.eventDate" ascending="true" />
      <pageSize>10</pageSize>
    </genericPageProvider>

    <genericPageProvider name="DOCUMENT_HISTORY_PROVIDER"
      class="org.nuxeo.ecm.platform.audit.api.document.DocumentHistoryPageProvider">
      <whereClause docType="BasicAuditSearch">
        <predicate parameter="log.eventDate" operator="BETWEEN">
          <field schema="basicauditsearch" name="startDate" />
          <field schema="basicauditsearch" name="endDate" />
        </predicate>
        <predicate parameter="log.category" operator="=">
          <field schema="basicauditsearch" name="eventCategory" />
        </predicate>
        <predicate parameter="log.category" operator="IN">
          <field schema="basicauditsearch" name="eventCategories" />
        </predicate>
        <predicate parameter="log.eventId" operator="=">
          <field schema="basicauditsearch" name="eventId" />
        </predicate>
        <predicate parameter="log.eventId" operator="IN">
          <field schema="basicauditsearch" name="eventIds" />
        </predicate>
        <predicate parameter="log.principalName" operator="=">
          <field schema="basicauditsearch" name="principalName" />
        </predicate>
        <predicate parameter="log.principalName" operator="IN">
          <field schema="basicauditsearch" name="principalNames" />
        </predicate>
      </whereClause>
      <sort column="log.eventDate" ascending="false" />
      <sort column="log.id" ascending="false" />
      <pageSize>10</pageSize>
      <maxPageSize>1000</maxPageSize>
    </genericPageProvider>

  </extension>

</component>